package chixing.day09.homework.work5;

import chixing.day09.homework.work5.Product;

public class ProductUtils {
    public static double getSumPrice(Product[] proArray){
        double sum = 0;
        for (Product p:proArray) {
            sum += p.getDiscountedPrice();
        }
        return sum;
    }
}
